<?php
	include "includes".DIRECTORY_SEPARATOR."start_session.php";
	
	if ( !defined('USERNAME') || !defined('GROUP') || GROUP != "admin" )
	{
		header("Location: manage_login.php");
		exit;
	}
		
		
	if($_SERVER['REQUEST_METHOD'] == 'GET' && isset($_GET["section"]) )
			 {					
				switch ( $_GET["section"] ) 
				{
					case 1:
						header("Location: admin_manage_users.php");
						break;
					case 2:
						header("Location: admin_manage_groups.php");
						break;
					case 3:
						header("Location: admin_manage_my_account.php");
						break;
					case 4:
						header("Location: admin_manage_cor_nc.php");
						break;
					default:
						header("Location: manage_login.php");
						break;	
				}	
				exit;	
			 }
			 else
			{
				header("Location: admin_manage_users.php");
				exit;
			}	
?>